package User;

import book.BookList;
import opera.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-12-06
 * Time: 20:21
 */
public abstract class Person {
    protected String name;
    protected IOperation[] iOperations;

    public Person(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doWork(int choice, BookList bookList) {
        this.iOperations[choice].work(bookList);
    }
}
